home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / Video.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  6.0 KB  |  162 lines  |  [TEXT/MPS ]

  1. ;    File:        Video.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGVIDEO__') = 'UNDEFINED' THEN
  12. __INCLUDINGVIDEO__    SET    1
  13. ;
  14. ; Video sResource parameter Id's
  15. ;
  16.  
  17. mBaseOffset           EQU         1                         ;Id of mBaseOffset.
  18. mRowBytes             EQU         2
  19. mBounds               EQU         3
  20. mVersion              EQU         4
  21. mHRes                 EQU         5
  22. mVRes                 EQU         6
  23. mPixelType            EQU         7
  24. mPixelSize            EQU         8
  25. mCmpCount             EQU         9
  26. mCmpSize              EQU         10
  27. mPlaneBytes           EQU         11
  28. ;* mTable             EQU         12
  29. ;* mPageCnt         EQU         13
  30. mVertRefRate          EQU         14
  31.  
  32.  
  33. mVidParams            EQU         1                         ;Video parameter block id.
  34. mTable                EQU         2                         ;Offset to the table.
  35. mPageCnt              EQU         3                         ;Number of pages
  36. mDevType              EQU         4                         ;Device Type
  37.  
  38.  
  39. ;
  40. ; Video sResource List Id's
  41. ;
  42.  
  43. oneBitMode            EQU         128                       ;Id of OneBitMode Parameter list.
  44. twoBitMode            EQU         129                       ;Id of TwoBitMode Parameter list.
  45. fourBitMode           EQU         130                       ;Id of FourBitMode Parameter list.
  46. eightBitMode          EQU         131                       ;Id of EightBitMode Parameter list.
  47. sixteenBitMode      EQU         132                       ;Id of SixteenBitMode Parameter list.
  48. thirtyTwoBitMode      EQU         133                       ;Id of ThirtyTwoBitMode Parameter list.
  49.  
  50. firstVidMode        EQU            128                        ; If we ever decide to add/drop a modes
  51. secondVidMode        EQU            129                        ;    in a particular card, it makes more
  52. thirdVidMode        EQU            130                        ;    sense to name the modes in an ordinal
  53. fourthVidMode        EQU            131                        ;    fashion rather than in a cardinal
  54. fifthVidMode        EQU            132                        ;    one.  (The RBV equates do this.) <14>
  55. sixthVidMode        EQU            133
  56.  
  57. spGammaDir            EQU            64
  58. spVidNamesDir        EQU            65                        ; <12>
  59.  
  60. ;
  61. ; Control Codes
  62. ;
  63.  
  64. cscReset              EQU         0
  65. cscKillIO            EQU            1                        ; <15>
  66. cscSetMode            EQU         2
  67. cscSetEntries         EQU         3
  68. cscSetGamma            EQU            4                        ; <12>
  69. cscGrayPage           EQU         5
  70. cscGrayScreen        EQU            5                        ; This is what C&D 2 calls it. <12>
  71. cscSetGray            EQU         6
  72. cscSetInterrupt        EQU            7                        ; <12>
  73. cscDirectSetEntries    EQU            8                        ; <12>
  74. cscSetDefaultMode    EQU            9                        ; <12>
  75.  
  76. ;
  77. ; Status Codes
  78. ;
  79.  
  80. cscGetMode            EQU         2
  81. cscGetEntries         EQU         3
  82. cscGetPageCnt         EQU         4
  83. cscGetPages            EQU            4                        ; This is what C&D 2 calls it. <12>
  84. cscGetPageBase        EQU         5
  85. cscGetBaseAddr        EQU            5                        ; This is what C&D 2 calls it. <12>
  86. cscGetGray            EQU            6                        ; <12>
  87. cscGetInterrupt        EQU            7                        ; <12>
  88. cscGetGamma            EQU            8                        ; <12>
  89. cscGetDefaultMode    EQU            9                        ; <12>
  90.  
  91.  
  92. csGTable              EQU         0                         ; [long] pointer to gamma table
  93. csTable               EQU         0                         ; [long] pointer to CLUT
  94. csStart               EQU         4                         ; [word] entry start number
  95. csCount               EQU         6                         ; [word] entry count to change
  96.  
  97. ;
  98. ; mVidParams block
  99. ;
  100.  
  101. VPBlock               RECORD      0                         ;Video Parameters block.
  102. vpBaseOffset          DS.L        1                         ;Offset to page zero of video RAM (From minorBaseOS).
  103. vpRowBytes            DS.W        1                         ;Width of each row of video memory.
  104. vpBounds              DS.W        4                         ;BoundsRect for the video display (gives dimensions).
  105. vpVersion             DS.W        1                         ;PixelMap version number.
  106. vpPackType            DS.W        1                         ;
  107. vpPackSize            DS.L        1                         ;
  108. vpHRes                DS.L        1                         ;Horizontal resolution of the device (pixels per inch).
  109. vpVRes                DS.L        1                         ;Vertical resolution of the device (pixels per inch).
  110. vpPixelType           DS.W        1                         ;Defines the pixel type.
  111. vpPixelSize           DS.W        1                         ;Number of bits in pixel.
  112. vpCmpCount            DS.W        1                         ;Number of components in pixel.
  113. vpCmpSize             DS.W        1                         ;Number of bits per component
  114. vpPlaneBytes          DS.L        1                         ;Offset from one plane to the next.
  115. vpBlockSize           EQU         *
  116.                       ENDR
  117.  
  118.  
  119.  
  120. VDSetEntryRecord      RECORD      0
  121. csTable               DS.L        1                         ; ^ColorSpec - (long) Pointer to an array of color specs
  122. csStart               DS.W        1                         ; INTEGER - (word) Which spec in array to start with, or -1
  123. csCount               DS.W        1                         ; INTEGER - (word) Number of color spec entries to set
  124.                       ENDR
  125.  
  126. VDPageInfo            RECORD      0
  127. csMode                DS.W        1                         ; INTEGER - (word) mode within device
  128. csData                DS.L        1                         ; LONGINT - (long) data supplied by driver
  129. csPage                DS.W        1                         ; INTEGER - (word) page to switch in
  130. csBaseAddr            DS.L        1                         ; Ptr - (long) base address of page 
  131.                       ENDR
  132.  
  133. VDSizeInfo            RECORD      0
  134. csHSize               DS.W        1                         ; INTEGER - (word) desired/returned h size
  135. csHPos                DS.W        1                         ; INTEGER - (word) desired/returned h position
  136. csVSize               DS.W        1                         ; INTEGER - (word) desired/returned v size
  137. csVPos                DS.W        1                         ; INTEGER - (word) desired/returned v position
  138.                       ENDR
  139.  
  140. VDSettings            RECORD      0
  141. csParamCnt            DS.W        1                         ; INTEGER - (word) number of params 
  142. csBrightMax           DS.W        1                         ; INTEGER - (word) max brightness
  143. csBrightDef           DS.W        1                         ; INTEGER - (word) default brightness
  144. csBrightVal           DS.W        1                         ; INTEGER - (word) current brightness
  145. csCntrstMax           DS.W        1                         ; INTEGER - (word) max contrast 
  146. csCntrstDef           DS.W        1                         ; INTEGER - (word) default contrast 
  147. csCntrstVal           DS.W        1                         ; INTEGER - (word) current contrast 
  148. csTintMax             DS.W        1                         ; INTEGER - (word) max tint 
  149. csTintDef             DS.W        1                         ; INTEGER - (word) default tint 
  150. csTintVal             DS.W        1                         ; INTEGER - (word) current tint 
  151. csHueMax              DS.W        1                         ; INTEGER - (word) max hue
  152. csHueDef              DS.W        1                         ; INTEGER - (word) default hue
  153. csHueVal              DS.W        1                         ; INTEGER - (word) current hue
  154. csHorizDef            DS.W        1                         ; INTEGER - (word) default horizontal
  155. csHorizVal            DS.W        1                         ; INTEGER - (word) current horizontal
  156. csHorizMax            DS.W        1                         ; INTEGER - (word) max horizontal
  157. csVertDef             DS.W        1                         ; INTEGER - (word) default vertical 
  158. csVertVal             DS.W        1                         ; INTEGER - (word) current vertical 
  159. csVertMax             DS.W        1                         ; INTEGER - (word) max vertical 
  160.                       ENDR
  161.  
  162.     ENDIF    ; ...already included